﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace MyCode.Project.Domain.Model
{
    ///<summary>
    ///工作调度
    ///</summary>
    [SugarTable("SysWorkProcess")]
    public partial class SysWorkProcess
    {
           public SysWorkProcess(){


           }
           /// <summary>
           /// Desc:ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public Guid ID {get;set;}

           /// <summary>
           /// Desc:对应的商家。
           /// Default:
           /// Nullable:False
           /// </summary>           
           public Guid MerchantID {get;set;}

           /// <summary>
           /// Desc:执行类型。1=类对象，2=存储过程
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int FuncType {get;set;}

           /// <summary>
           /// Desc:执行的类
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FuncClass {get;set;}

           /// <summary>
           /// Desc:执行的模块
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FuncMethod {get;set;}

           /// <summary>
           /// Desc:参数信息
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ParamInfo {get;set;}

           /// <summary>
           /// Desc:执行时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? ExecuteTime {get;set;}

           /// <summary>
           /// Desc:重试次数
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int RetryCount {get;set;}

           /// <summary>
           /// Desc:异常信息
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ExceptionInfo {get;set;}

           /// <summary>
           /// Desc:执行状态。0=等待，1=执行，2=异常暂停，3=执行完成
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int FuncStatus {get;set;}

           /// <summary>
           /// Desc:创建人
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Creater {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateTime {get;set;}

           /// <summary>
           /// Desc:编辑人
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Editor {get;set;}

           /// <summary>
           /// Desc:编辑时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? EditTime {get;set;}

           /// <summary>
           /// Desc:备注
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Remark {get;set;}

           /// <summary>
           /// Desc:数字越小，优先级越高
           /// Default:5
           /// Nullable:True
           /// </summary>           
           public int? Priority {get;set;}

    }
}
